package com.sunjob.mroassets;

import com.sunjob.common.exceptionHandler.GlobalExceptionHandler;
import com.sunjob.common.redisTemplateConfig.RedisTemplateConfig;
import com.sunjob.common.roleAndAuth.RoleAndAuthConfig;
import com.sunjob.common.saTokenInterceptor.SaTokenInterceptorConfig;
import com.sunjob.mrosystem.aop.ExecLogAop;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

@SpringBootApplication
@EnableDiscoveryClient
//开启远程调用
@EnableFeignClients
//开启熔断
@EnableCircuitBreaker
@Import({GlobalExceptionHandler.class, ExecLogAop.class, RedisTemplateConfig.class,GlobalExceptionHandler.class, SaTokenInterceptorConfig.class, RoleAndAuthConfig.class})
public class MroAssetsApplication {

    public static void main(String[] args) {
        SpringApplication.run(MroAssetsApplication.class, args);
    }

}
